namespace ImageManager
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);
            Starter.PreSetup(builder);
            builder.Services.AddControllers();
            builder.Services.AddEndpointsApiExplorer();
            Starter.AddScopeds(builder.Services);
            var app = builder.Build();
            Starter.Setup(app);
            app.UseStaticFiles();
            app.UseDefaultFiles();
            app.UseAuthorization();
            app.MapControllers();
            app.Run();
        }
    }
}
